package cn.com.huzo.model.entities.purchase;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 采购订单-引人的补料单之材料用量实体类
 * <p>
 * @author 吴旭
 */
public class PoLinesMrpFeedingLinesEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = -7866311602801972858L;
    private String LinesId;
    private Long HeaderId;
    private Long MrpFeedingHeaderId;        // 补料单主表Id
    private String MrpFeedingLinesId;       // 补料单明细Id
    private Short OrderNo;                  // 排列顺序
    private String StyleNo;                 // 款号
    private String MaterialCode;
    private String MaterialName;            // 材料名
    private String SupplierName;            // 供应商
    private Long UomId;
    private String UomName;                 // 计量单位
    private String Specification;           // 规格
    private String YarnCount;               // 纱支
    private String FabricWidth;             // 幅宽
    private String GramWeight;              // 克重
    private String MaterialComposition;     // 材料成分
    private String MeshBeltOpening;         // 织带开度
    private String MaterialColourNumber;    // 材料色码
    private String MaterialColourName;      // 材料色
    private String PartOfNeed;              // 用料部位
    private String Destination;             // 发货目的地
    private Float DemandedQuantity;         // 订料数量
    private String Description;             // 备注
    private Short QuotedFlag;               // 被采购订单引用标记
    private String BillNo;                  // 补料单号

    public String getLinesId() {
        return LinesId;
    }

    public void setLinesId(String LinesId) {
        this.LinesId = LinesId;
    }

    public Long getHeaderId() {
        return HeaderId;
    }

    public void setHeaderId(Long HeaderId) {
        this.HeaderId = HeaderId;
    }

    public Long getMrpFeedingHeaderId() {
        return MrpFeedingHeaderId;
    }

    public void setMrpFeedingHeaderId(Long MrpFeedingHeaderId) {
        this.MrpFeedingHeaderId = MrpFeedingHeaderId;
    }

    public String getMrpFeedingLinesId() {
        return MrpFeedingLinesId;
    }

    public void setMrpFeedingLinesId(String MrpFeedingLinesId) {
        this.MrpFeedingLinesId = MrpFeedingLinesId;
    }

    public Short getOrderNo() {
        return OrderNo;
    }

    public void setOrderNo(Short OrderNo) {
        this.OrderNo = OrderNo;
    }

    public String getStyleNo() {
        return StyleNo;
    }

    public void setStyleNo(String StyleNo) {
        this.StyleNo = StyleNo;
    }

    public String getMaterialCode() {
        return MaterialCode;
    }

    public void setMaterialCode(String MaterialCode) {
        this.MaterialCode = MaterialCode;
    }

    public String getMaterialName() {
        return MaterialName;
    }

    public void setMaterialName(String MaterialName) {
        this.MaterialName = MaterialName;
    }

    public String getSupplierName() {
        return SupplierName;
    }

    public void setSupplierName(String SupplierName) {
        this.SupplierName = SupplierName;
    }

    public Long getUomId() {
        return UomId;
    }

    public void setUomId(Long UomId) {
        this.UomId = UomId;
    }

    public String getUomName() {
        return UomName;
    }

    public void setUomName(String UomName) {
        this.UomName = UomName;
    }

    public String getSpecification() {
        return Specification;
    }

    public void setSpecification(String Specification) {
        this.Specification = Specification;
    }

    public String getYarnCount() {
        return YarnCount;
    }

    public void setYarnCount(String YarnCount) {
        this.YarnCount = YarnCount;
    }

    public String getFabricWidth() {
        return FabricWidth;
    }

    public void setFabricWidth(String FabricWidth) {
        this.FabricWidth = FabricWidth;
    }

    public String getGramWeight() {
        return GramWeight;
    }

    public void setGramWeight(String GramWeight) {
        this.GramWeight = GramWeight;
    }

    public String getMaterialComposition() {
        return MaterialComposition;
    }

    public void setMaterialComposition(String MaterialComposition) {
        this.MaterialComposition = MaterialComposition;
    }

    public String getMeshBeltOpening() {
        return MeshBeltOpening;
    }

    public void setMeshBeltOpening(String MeshBeltOpening) {
        this.MeshBeltOpening = MeshBeltOpening;
    }

    public String getMaterialColourNumber() {
        return MaterialColourNumber;
    }

    public void setMaterialColourNumber(String MaterialColourNumber) {
        this.MaterialColourNumber = MaterialColourNumber;
    }

    public String getMaterialColourName() {
        return MaterialColourName;
    }

    public void setMaterialColourName(String MaterialColourName) {
        this.MaterialColourName = MaterialColourName;
    }

    public String getPartOfNeed() {
        return PartOfNeed;
    }

    public void setPartOfNeed(String PartOfNeed) {
        this.PartOfNeed = PartOfNeed;
    }

    public String getDestination() {
        return Destination;
    }

    public void setDestination(String Destination) {
        this.Destination = Destination;
    }

    public Float getDemandedQuantity() {
        return DemandedQuantity;
    }

    public void setDemandedQuantity(Float DemandedQuantity) {
        this.DemandedQuantity = DemandedQuantity;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String Description) {
        this.Description = Description;
    }

    public Short getQuotedFlag() {
        return QuotedFlag;
    }

    public void setQuotedFlag(Short QuotedFlag) {
        this.QuotedFlag = QuotedFlag;
    }

    public String getBillNo() {
        return BillNo;
    }

    public void setBillNo(String BillNo) {
        this.BillNo = BillNo;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof PoLinesMrpFeedingLinesEntity)) {
            return false;
        }

        final PoLinesMrpFeedingLinesEntity that = (PoLinesMrpFeedingLinesEntity) o;

        return new EqualsBuilder()
                .append(this.getLinesId(), that.getLinesId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + getLinesId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
